import { createApp } from 'vue'

import ElementPlus from 'element-plus'
import locale from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
import '@/assets/styles/index.scss'
import elementIcons from '@/components/icons/elementIcon.js'


import App from './App.vue'
import store from './store' // 缓存
import router from './router' // 路由
import directive from './directive' // 封装自定义指令
import plugins from './plugins' // 封装统一弹框提示

// 分页组件
import Pagination from '@/components/Pagination/index.vue'

const app = createApp(App)


app.component('Pagination', Pagination)

app.use(router)
app.use(store)
app.use(plugins)
directive(app)
app.use(elementIcons)
app.use(ElementPlus, {
  locale: locale,
  // 支持 large、default、small
  size: 'default'
})

app.mount('#app')
